package com.fzrskj.cloud.free.core.enums;

/**
 * XinnetRegistrantTypeEnum.
 *
 * @author wzj.
 *         Created on 2019/03/15 0002
 */
public enum XinnetRegistrantTypeEnum {
    /**
     * 个人.
     */
    INDIVIDUAL("I"),
    /**
     *  公司/组织.
     */
    ORGANIZATION("E");

    /**
     * 值.
     */
    private String type;

    /**
     * construct.
     * @param type 值.
     */
    XinnetRegistrantTypeEnum(String type) {
        this.type = type;
    }

    /**
     * 是否等于.
     * @param comparisonType 对比值.
     * @return
     */
    public Boolean equals(String comparisonType) {
        return this.type.equals(comparisonType);
    }

    /**
     * get type.
     * @return type.
     */
    public String getType() {
        return this.type;
    }
}
